<%@ include file="/en/jsp/static.jsp" %>

<%
  int ENTRIES_PER_PAGE = Integer.parseInt((String)request.getAttribute("ENTRIES_PER_PAGE"));
  int ENTRIES_PER_HOMEPAGE = Integer.parseInt((String)request.getAttribute("ENTRIES_PER_HOMEPAGE"));
  int LENGTH = Integer.parseInt((String)request.getAttribute("LENGTH"));
%>

<jsp:include page="/en/jsp/header.jsp" flush="true"/>

<form action="<%=BoxStatic.servletDir%>BoxNewsSettingsAction" method=get name=theForm >
  <table width="100%" height=26 align=middle border=0 cellpadding=0 cellspacing=0 bgcolor="#f4f4f4" style="font-size:16px;color:#d05000">
    <tr>
      <td>
        &nbsp;<img src="<%=BoxStatic.imageDir%>itemball.jpg" width=14 height=15 border=0 align="absmiddle">
        <b><%=boxName%> - News Settings</b>
      </td>
    </tr>
  </table>

<hr width=\"100%\" color=#E06000 align=left>

  <TABLE cellSpacing=0 cellPadding=4 width="100%" border=0>
    <tr><th align=left bgcolor="#e4e4e4" >
      <font size="+1">Home Page:</font>
    </th></tr>
    <tr><td>
      Display
          <select name="ENTRIES_PER_HOMEPAGE" size="1" >
            <OPTION value=2 <% if (ENTRIES_PER_HOMEPAGE==2) out.print("selected");%>>2</OPTION>
            <OPTION value=3 <% if (ENTRIES_PER_HOMEPAGE==3) out.print("selected");%>>3</OPTION>
            <OPTION value=4 <% if (ENTRIES_PER_HOMEPAGE==4) out.print("selected");%>>4</OPTION>
            <OPTION value=5 <% if (ENTRIES_PER_HOMEPAGE==5) out.print("selected");%>>5</OPTION>
            <OPTION value=6 <% if (ENTRIES_PER_HOMEPAGE==6) out.print("selected");%>>6</OPTION>
            <OPTION value=7 <% if (ENTRIES_PER_HOMEPAGE==7) out.print("selected");%>>7</OPTION>
            <OPTION value=8 <% if (ENTRIES_PER_HOMEPAGE==8) out.print("selected");%>>8</OPTION>
          </select>
         entries in home page
    </td></tr>
    <tr><td>
      Display
          <select name="LENGTH" size="1" >
            <OPTION value=20 <% if (LENGTH==20) out.print("selected");%>>20</OPTION>
            <OPTION value=40 <% if (LENGTH==40) out.print("selected");%>>40</OPTION>
            <OPTION value=60 <% if (LENGTH==60) out.print("selected");%>>60</OPTION>
            <OPTION value=80 <% if (LENGTH==80) out.print("selected");%>>80</OPTION>
            <OPTION value=100 <% if (LENGTH==100) out.print("selected");%>>100</OPTION>
            <OPTION value=120 <% if (LENGTH==120) out.print("selected");%>>120</OPTION>
            <OPTION value=140 <% if (LENGTH==140) out.print("selected");%>>140</OPTION>
          </select>
         characters for each news entry.
    </td></tr>
    <tr><th align=left bgcolor="#e4e4e4" >
      <font size="+1">General:</font>
    </th></tr>
    <tr><td>
      Display
          <select name="ENTRIES_PER_PAGE" size="1" >
            <OPTION value=10 <% if (ENTRIES_PER_PAGE==10) out.print("selected");%>>10</OPTION>
            <OPTION value=20 <% if (ENTRIES_PER_PAGE==20) out.print("selected");%>>20</OPTION>
            <OPTION value=30 <% if (ENTRIES_PER_PAGE==30) out.print("selected");%>>30</OPTION>
            <OPTION value=50 <% if (ENTRIES_PER_PAGE==50) out.print("selected");%>>50</OPTION>
            <OPTION value=100 <% if (ENTRIES_PER_PAGE==100) out.print("selected");%>>100</OPTION>
            <OPTION value=200 <% if (ENTRIES_PER_PAGE==200) out.print("selected");%>>200</OPTION>
          </select>
         entries per page.
    </td></tr>
    <tr><td>
      <input type=submit value="Save"  name="SubmitSave">
      <input type=button value="Cancel" onclick="window.history.back()" >
    </td></tr>
  </TABLE>

<hr width=\"100%\" color=#E06000 align=left>
</form>

<jsp:include page="/en/jsp/footer.jsp" flush="true"/>
